﻿
using System;
using xiaodingmarket_Domain_core.Models;

namespace xiaodingmarket_Domain.Models
{
    public class ModuleRoles:Entity
    {
        public ModuleRoles()
        {

        }
        public ModuleRoles(Guid moduleID, Guid roleID, Module module, Role role, bool isDelete)
        {
            ModuleID = moduleID;
            RoleID = roleID;
            Module = module;
            Role = role;
            IsDelete = isDelete;
        }

        /// <summary>
        ///module的id
        /// </summary>
        public Guid ModuleID { get; set; }
        /// <summary>
        ///role的id
        /// </summary>
        public Guid RoleID { get; set; }
        /// <summary>
        ///导航属性
        /// </summary>
        public Module Module { get; set; }
        public Role Role { get; set; }
        /// <summary>
        /// 逻辑删除
        /// </summary>
        public bool IsDelete { get; set; }

    }
}
